{% extends "light.twig" %}
{% set concept_label = '' %}{% for concept in search_results %}{% set concept_label = concept.label %}{% endfor %}
{% block title %}ONKI{% if search_results|length == 1 %}: {{ vocab_id|upper }}: {{ concept_label }}{% else %}: {{ vocab_id|upper }}{% endif %}
{% endblock %}
{% block content %}
  {% if vocab.title != null or search_results != null %}
  	{% include 'vocab-search-nav-bar.twig' %}
    <div id="vocab-content">
  	{% if search_results %}
       {% include 'concept-info.twig' %}
  	{% else %}
  	  <span class="header-text-small-font">{% trans %}Error: term "{{ term }}" not found in vocabulary!{% endtrans %}</span>
  	{% endif %}
    </div>
  {% else %}
  {% include "infobox.twig" %}
    <div class="error-message" style="margin-top: 20px; text-align: center;">
      <span class="header-text-font">{% trans %}Error: Requested vocabulary "{{ vocab_id }}" not found!{% endtrans %}</span>
    </div>
  {% endif %}
{% endblock %}
